﻿from ctypes import *
from struct import pack, unpack
from array import array
import time


c_int_p = POINTER(c_int)


buffer = create_string_buffer(10)
buffer[2] = "\x01"
p = c_longlong.from_buffer(buffer, 2)
print p.value
p.value = 2
print p.value
print repr(buffer[2])